<!-- 设置面包屑 -->
#set($breadcrumbs = [{"name":"用户管理","url":"$!{base}/permission/list"},{"name":"权限列表"}])
<!-- 设置功能描述 -->
#set($feature = {"major":"用户管理","minor":"权限列表"})
<!-- 设置导航高亮 -->
#set($subList = "permission_list")
<!-- 设置DEGBUG开关 -->
#set($debug = true)
<table class="table table-striped table-bordered table-hover">
	<thead>
		<tr>
			<th colspan="10">
				<div class="row">
					<div class="col-md-3 ">
						<form action="$!{base}/permission/search" method="post" class="search-form">
							<div class="input-group">
								<span class="input-group-addon"> 关键词 </span> <input class="form-control search-query" type="text" name="key" value="" data-type="reg" data-reg="/^[\u4e00-\u9fa5\d\w]{1,}$/"
									data-default="Search..." data-error="请输入搜索关键词" placeholder="请输入权限名检索"> <span class="input-group-addon btn-purple search-btn" id="queryInfo"
									style="cursor:pointer ;"> <i class="fa fa-search"></i> GO
								</span>
							</div>
						</form>
					</div>
					<div class="col-md-2 col-md-offset-7">
						<!-- button class="btn btn-sm btn-primary pull-right btn-pop" data-url='/permission/add' data-width='425' data-height='490' data-title='添加权限' data-btn='false'
							style="margin-right:45px">
							<i class="fa fa-plus"></i> 添加权限
						</button -->
					</div>
				</div>
			</th>
		</tr>
		<tr class="center">
			<th>权限ID</th>
			<th>权限名</th>
			<th>权限对应url</th>
			<th>权限描述</th>
			<th>权限内置标识</th>
			<th>权限路径分组</th>
			<th>是否菜单标识</th>
			<th>前置权限</th>
			<th>菜单高亮关键字</th>
			<th>操作</th>
		</tr>
	</thead>

	<tbody>
		#foreach($permission in $obj.data.pager.entities)
		<tr>
			<td class="center">$!{permission.id}</td>
			<td>$!{permission.name}</td>
			<td>$!{permission.url}</td>
			<td>$!{permission.description}</td>
			<td>$!{permission.installed}</td>
			<td>$!{permission.menuGroup.name}</td>
			<td>$!{permission.isMenu}</td>
			<td>$!{permission.need}</td>
			<td>$!{permission.hilightKey}</td>
			<td class="center">
				#if(! $permission.installed)
					<!-- button class="btn btn-xs btn-success btn-pop" data-url='/permission/edit/$!{permission.id}' data-width='425' data-height='500' data-title=' 角色$!{permission.name} 详情'
						data-btn='false'>
						<i class="ace-icon fa fa-check bigger-120"></i>编辑
					</button -->
					<button class="btn btn-xs btn-danger btn-delete" data-url='/permission/delete' data-id='$!{permission.id}'>
						<i class="ace-icon fa fa-trash-o bigger-120"></i>删除
					</button>
				#end
			</td>
		</tr>
		#end
	</tbody>
	<tfoot>
		#if(${obj.data.pager.count} == 0)
		<tr>
			<td colspan="10" class="null-pager">没有符合条件的数据</td>
		</tr>
		#else
		<tr>
			<td colspan="10">
				<div class="pull-right">$!{obj.data.pager.pagerBar}</div>
			</td>
		</tr>
		#end
	</tfoot>
</table>
